package org.deva.erp.common.service;

import java.io.Serializable;

import org.deva.erp.base.service.BaseService;
import org.deva.erp.common.entity.User;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * Project: erp<br>
 * Description: 用户管理Service，容器单例<br>
 * Copyright (c) 2012<br>
 * All Rights Reserved.<br>
 * @author <a href="mailto:gly420@163.com">GuanLuYong</a><br>
 */
@Service("userService") @Scope("singleton")
public class UserService extends BaseService<User> implements Serializable {
	private static final long serialVersionUID = 1L;
	@Transactional(propagation = Propagation.REQUIRED)
	@Override
	public void update(User t) throws Exception {
		super.update(t);
		
	}
	@Transactional(propagation = Propagation.REQUIRED)
	@Override
	public void insert(User t) throws Exception {
		super.insert(t);
	}
	@Transactional(propagation = Propagation.REQUIRED)
	@Override
	public void delete(User t) throws Exception {
		super.delete(t);
	}

}
